/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * infPacienteAmbulatorio.java
 *
 * Created on 25/11/2010, 12:25:12 AM
 */

package GUI.ambulatorio;

import GUI.ambulatorio.ambulatorio;
import javax.swing.JOptionPane;
import cprincipal.*;
import Persistencia.*;
import venehealthfinal.Validar;
/**
 *
 * @author marcelo
 */
public class infPacienteAmbulatorio extends javax.swing.JFrame {

    /** Creates new form infPacienteAmbulatorio */
    private boolean resultado = false;
    PacienteXml datosPac=new PacienteXml();

    public infPacienteAmbulatorio() {
        initComponents();
    }

    private void clearScreen(){

    TxtAnioNac.setText("");
    TxtApellido.setText("");
    TxtNombre.setText("");
    TxtTelefono.setText("");
    TxtDireccion.setText("");

    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        LabelNombre = new javax.swing.JLabel();
        LabelApellido = new javax.swing.JLabel();
        LabelCedula = new javax.swing.JLabel();
        LabelTelefono = new javax.swing.JLabel();
        LabelAnioNac = new javax.swing.JLabel();
        LabelLocalidad = new javax.swing.JLabel();
        TxtNombre = new javax.swing.JTextField();
        TxtApellido = new javax.swing.JTextField();
        TxtCedula = new javax.swing.JTextField();
        TxtTelefono = new javax.swing.JTextField();
        TxtAnioNac = new javax.swing.JTextField();
        ComboBoxTipoPlan = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        TxtDireccion = new javax.swing.JTextField();
        ComboBoxLocalidad = new javax.swing.JComboBox();
        LabelTipoPlan = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        BotonEliminar = new javax.swing.JButton();
        BotonAgregarPaciente = new javax.swing.JButton();
        BotonRegresar = new javax.swing.JButton();
        BotonModificar = new javax.swing.JButton();
        BotonConsultarHistorial = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos Personales"));
        jPanel1.setEnabled(false);

        LabelNombre.setText("Nombre:");

        LabelApellido.setText("Apellido:");

        LabelCedula.setText("Cedula:");

        LabelTelefono.setText("Telefono:");

        LabelAnioNac.setText("Año de nacimiento:");

        LabelLocalidad.setText("Localidad:");

        ComboBoxTipoPlan.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Basico", "Medicinal", "Consultas", "Operaciones", "Especial" }));

        jLabel2.setText("Direccion:");

        ComboBoxLocalidad.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Zulia", "Tachira", "Merida", "Trujillo", "Apure", "Barinas", "Portuguesa", "Lara", "Falcon", "Yaracuy", "Cojedes", "Carabobo", "Dto. Capital", "Vargas", "Miranda", "Guarico", "Anzoategui", "Bolivar ", "Amazonas", "Monagas", "Delta Amacuro", "Sucre" }));

        LabelTipoPlan.setText("Tipo de plan:");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(LabelNombre)
                                .addGap(18, 18, 18)
                                .addComponent(TxtNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 640, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addComponent(LabelApellido)
                                .addGap(18, 18, 18)
                                .addComponent(TxtApellido, javax.swing.GroupLayout.DEFAULT_SIZE, 638, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addComponent(LabelCedula)
                                .addGap(27, 27, 27)
                                .addComponent(TxtCedula, javax.swing.GroupLayout.DEFAULT_SIZE, 638, Short.MAX_VALUE)))
                        .addContainerGap())
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(LabelTelefono)
                            .addComponent(jLabel2))
                        .addGap(14, 14, 14)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(TxtTelefono, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(LabelLocalidad)
                                        .addGap(36, 36, 36))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(LabelTipoPlan)
                                        .addGap(18, 18, 18)))
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(ComboBoxTipoPlan, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(ComboBoxLocalidad, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addGap(124, 124, 124))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(TxtDireccion, javax.swing.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE)
                                .addContainerGap())))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(LabelAnioNac)
                        .addGap(18, 18, 18)
                        .addComponent(TxtAnioNac, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(511, Short.MAX_VALUE))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LabelNombre)
                    .addComponent(TxtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(TxtApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(LabelApellido))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(TxtCedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(LabelCedula, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LabelAnioNac)
                    .addComponent(TxtAnioNac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(ComboBoxLocalidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(LabelLocalidad))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ComboBoxTipoPlan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(LabelTipoPlan)
                    .addComponent(TxtTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(LabelTelefono))
                .addGap(34, 34, 34)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(TxtDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(47, 47, 47))
        );

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabel1.setForeground(new java.awt.Color(204, 0, 0));
        jLabel1.setText("Informacion del Paciente");

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Opciones"));

        BotonEliminar.setText("Eliminar");
        BotonEliminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonEliminarActionPerformed(evt);
            }
        });

        BotonAgregarPaciente.setText("Agregar");
        BotonAgregarPaciente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonAgregarPacienteActionPerformed(evt);
            }
        });

        BotonRegresar.setText("Regresar");
        BotonRegresar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonRegresarActionPerformed(evt);
            }
        });

        BotonModificar.setText("Modificar");
        BotonModificar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonModificarActionPerformed(evt);
            }
        });

        BotonConsultarHistorial.setText("Consultar Historial Medico");
        BotonConsultarHistorial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BotonConsultarHistorialActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(BotonEliminar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BotonAgregarPaciente)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BotonRegresar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BotonModificar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BotonConsultarHistorial)
                .addContainerGap(9, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(BotonEliminar)
                .addComponent(BotonAgregarPaciente)
                .addComponent(BotonRegresar)
                .addComponent(BotonModificar)
                .addComponent(BotonConsultarHistorial, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel1))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(86, Short.MAX_VALUE)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 646, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(72, 72, 72))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(34, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void BotonRegresarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonRegresarActionPerformed
        // TODO add your handling code here:
       ambulatorio ventana=new ambulatorio();
        ventana.setVisible(true);
        this.dispose();
}//GEN-LAST:event_BotonRegresarActionPerformed

    private void BotonAgregarPacienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonAgregarPacienteActionPerformed
        // TODO add your handling code here:
        String localidad = (String) ComboBoxLocalidad.getSelectedItem();
        String tipoplan = (String) ComboBoxTipoPlan.getSelectedItem();

        if (TxtCedula.getText().isEmpty() || TxtNombre.getText().isEmpty() || TxtApellido.getText().isEmpty() || TxtAnioNac.getText().isEmpty() || TxtTelefono.getText().isEmpty()){
            JOptionPane.showMessageDialog(null, "Por favor llene todos los campos", "Error al Registrar", JOptionPane.ERROR_MESSAGE);
        }
        Paciente pac = new Paciente( TxtNombre.getText(), TxtApellido.getText(), Integer.parseInt(TxtCedula.getText())
                , TxtAnioNac.getText(), localidad, TxtTelefono.getText(), TxtDireccion.getText(), tipoplan);
                    resultado = datosPac.agregarPaciente(pac);
                    if (resultado == true) {
                        JOptionPane.showMessageDialog(null, "Paciente " + TxtNombre.getText() + " " + TxtApellido.getText(), " agregado con exito", JOptionPane.INFORMATION_MESSAGE);
                        clearScreen();
                        TxtCedula.setText("");
                    } else {
                        if (pac != null) {
                            JOptionPane.showMessageDialog(null, "Operacion Fallida", "Error", JOptionPane.ERROR_MESSAGE);
                        }
                    }
}//GEN-LAST:event_BotonAgregarPacienteActionPerformed

    private void BotonConsultarHistorialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonConsultarHistorialActionPerformed
        // TODO add your handling code here:
             
}//GEN-LAST:event_BotonConsultarHistorialActionPerformed

    private void BotonEliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonEliminarActionPerformed
        // TODO add your handling code here:
        if (TxtCedula.getText().isEmpty()){ /*&& (!TxtNombre.getText().isEmpty()) && (!TxtApellido.getText().isEmpty()) && (!TxtAnioNac.getText().isEmpty()) && (!TxtLocalidad.getText().isEmpty()) && (!TxtNumeroColegiatura.getText().isEmpty()) && (!TxtUniversidadEgreso.getText().isEmpty()) && (!TxtEstudiosEspeciales.getText().isEmpty()) && (!TxtEspecialidad.getText().isEmpty()) && (!TxtDisponibilidad.getText().isEmpty()) && (!TxtHoraEntrada.getText().isEmpty()) && (!TxtHoraSalida.getText().isEmpty())*/
            JOptionPane.showMessageDialog(null, "Error, campo invalidos", "Debe indicar un numero de cedula valido", JOptionPane.ERROR_MESSAGE);
        } else {
            int valor = Validar.ValidarEntero(TxtCedula.getText(), "Cédula no es numérica");
            if (valor == 1) {
               Paciente pac = datosPac.buscarPaciente(Integer.parseInt(TxtCedula.getText()));
                if (pac == null) {
                  JOptionPane.showMessageDialog(null, "El Paciente No Existe", "Error, cédula no encontrada", JOptionPane.ERROR_MESSAGE);
                } else {

                    TxtNombre.setText(pac.getNombre());
                    TxtApellido.setText(pac.getApellido());
                    TxtCedula.setText(String.valueOf(pac.getCedula()));
                    TxtAnioNac.setText(pac.getAnionac());
                    ComboBoxLocalidad.setVisible(false);
                    ComboBoxTipoPlan.setVisible(false);
                    TxtTelefono.setText(pac.getTelefono());
                    TxtDireccion.setText(pac.getDireccion());
                    LabelTipoPlan.setVisible(false);
                    LabelLocalidad.setVisible(false);
                    int conf= JOptionPane.showOptionDialog(
                            null, "¿Desea Realizar La Operación?", "::::...Confirmación...:::",
                            JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, null, null);
                    if (conf == 0) {
                        datosPac.borrarPaciente(Integer.parseInt(TxtCedula.getText()));
                        //clearScreen();
                        TxtCedula.setText("");
                        //TxtCedula.setText("");
                    }
                }
        }
        }
    }//GEN-LAST:event_BotonEliminarActionPerformed

    private void BotonModificarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BotonModificarActionPerformed
        // TODO add your handling code here:

        String localidad = (String) ComboBoxLocalidad.getSelectedItem();
        String tipoplan = (String) ComboBoxTipoPlan.getSelectedItem();
        if (TxtCedula.getText().isEmpty()) {
            JOptionPane.showMessageDialog(null, "Por favor indique la cédula", "Error falta cédula", JOptionPane.ERROR_MESSAGE);
        } else {
            int valor = Validar.ValidarEntero(TxtCedula.getText(), "Cédula no es numérica");
            if (valor == 1) {
                Paciente pac = datosPac.buscarPaciente(Integer.parseInt(TxtCedula.getText()));
                if (pac == null) {
                    JOptionPane.showMessageDialog(null, "Paciente no Existe", "Error cédula no encontrada", JOptionPane.ERROR_MESSAGE);
                } else {
                    TxtCedula.setEnabled(true);
                    /*if (TxtNombre.getText().isEmpty() || TxtApellido.getText().isEmpty() || TxtAnioNac.getText().isEmpty() || TxtLocalidad.getText().isEmpty() ||
                        TxtNumeroColegiatura.getText().isEmpty() || TxtUniversidadEgreso.getText().isEmpty() || TxtEstudiosEspeciales.getText().isEmpty() ||
                        TxtEspecialidad.getText().isEmpty() || TxtAniosExperiencia.getText().isEmpty() || TxtDisponibilidad.getText().isEmpty() ||
                        TxtHoraEntrada.getText().isEmpty()|| TxtHoraSalida.getText().isEmpty() ) {

                                JOptionPane.showMessageDialog(null, "Por favor indique los datos completos", "Error faltan Datos", JOptionPane.ERROR_MESSAGE);
                    } else {
                        int valor2 = Validar.ValidarEntero(TxtAniosExperiencia.getText(),"Eficiencia no posee el formato apropiado");
            if (valor2 == 1) {*/
                pac.setNombre(TxtNombre.getText());
                pac.setApellido(TxtApellido.getText());
                pac.setAnionac(TxtAnioNac.getText());
                pac.setLocalidad(localidad);
                pac.setTipoplan(tipoplan);
                pac.setTelefono(TxtTelefono.getText());
                pac.setDireccion(TxtDireccion.getText());
                datosPac.actualizarPaciente(pac);
                JOptionPane.showMessageDialog(null, "Paciente " + TxtNombre.getText() + " " + TxtApellido.getText(), " modificado con exito!", JOptionPane.INFORMATION_MESSAGE);
                clearScreen();
                TxtCedula.setText("");
                TxtCedula.setVisible(true);
                }


            }
        }
    }//GEN-LAST:event_BotonModificarActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new infPacienteAmbulatorio().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BotonAgregarPaciente;
    private javax.swing.JButton BotonConsultarHistorial;
    private javax.swing.JButton BotonEliminar;
    private javax.swing.JButton BotonModificar;
    private javax.swing.JButton BotonRegresar;
    private javax.swing.JComboBox ComboBoxLocalidad;
    private javax.swing.JComboBox ComboBoxTipoPlan;
    private javax.swing.JLabel LabelAnioNac;
    private javax.swing.JLabel LabelApellido;
    private javax.swing.JLabel LabelCedula;
    private javax.swing.JLabel LabelLocalidad;
    private javax.swing.JLabel LabelNombre;
    private javax.swing.JLabel LabelTelefono;
    private javax.swing.JLabel LabelTipoPlan;
    private javax.swing.JTextField TxtAnioNac;
    private javax.swing.JTextField TxtApellido;
    private javax.swing.JTextField TxtCedula;
    private javax.swing.JTextField TxtDireccion;
    private javax.swing.JTextField TxtNombre;
    private javax.swing.JTextField TxtTelefono;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    // End of variables declaration//GEN-END:variables

}
